Manual install php-pecl-uuid:
  pkg.installed:
    - pkgs:
      - libuuid-devel

  pecl.installed:
    - name: uuid
    - defaults: True

Create extension config file for php-pecl-uuid:
  # This config file only has 1 line, so just embed the content hel
  file.managed:
    - name: /etc/php.d/uuid.ini
    - contents: "extension = uuid.so"
    {% if salt['environ.get']('APP_NAMESPACE') != 'papi-container' %}
    - listen_in:
      - service: php-fpm
    {% endif %}
